package org.abadirou.cdebacker.flst.guice;

import org.abadirou.cdebacker.flst.JPAChambreDao;
import org.abadirou.cdebacker.flst.JPAOptionChambreDao;
import org.abadirou.cdebacker.flst.JPAPersonneDao;
import org.abadirou.cdebacker.flst.JPAReservationDao;
import org.abadirou.cdebacker.flst.JPATypeChambreDao;
import org.abadirou.cdebacker.flst.api.dao.ChambreDao;
import org.abadirou.cdebacker.flst.api.dao.OptionChambreDao;
import org.abadirou.cdebacker.flst.api.dao.PersonneDao;
import org.abadirou.cdebacker.flst.api.dao.ReservationDao;
import org.abadirou.cdebacker.flst.api.dao.TypeChambreDao;

import com.google.inject.AbstractModule;

public class JpaDaoModule extends AbstractModule {

    @Override
    protected void configure() {
    	
    	bind(ChambreDao.class).to(JPAChambreDao.class);
    	bind(PersonneDao.class).to(JPAPersonneDao.class);
    	bind(ReservationDao.class).to(JPAReservationDao.class);
    	bind(TypeChambreDao.class).to(JPATypeChambreDao.class);
    	bind(OptionChambreDao.class).to(JPAOptionChambreDao.class);
    	
    }

}
